Skip to content

Conversation

@himaniraghav3
Copy link
Collaborator

Related JIRA Ticket:

https://topcoder.atlassian.net/browse/PM-2554

What's in this PR?


if (filters.winnerIds && filters.winnerIds.length > 0) {
payload.winnerIds = filters.winnerIds
payload.winnerIds = filters.winnerIds.map(id => id.toString())
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
Converting winnerIds to strings using map(id => id.toString()) is a good approach to ensure consistency in data types. However, ensure that filters.winnerIds is always an array of numbers or strings to avoid unexpected behavior. Consider adding validation earlier in the data flow if this assumption might not hold.

@himaniraghav3 himaniraghav3 merged commit 8582c09 into dev Nov 3, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants